package com.jungle.system.application.domain.bo;

import com.jungle.common.core.validate.AddGroup;
import com.jungle.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import com.jungle.common.core.domain.MybatisBaseEntity;

/**
 * 应用管理业务对象 sys_application
 *
 * @author jungle
 * @date 2023-03-05
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class SysApplicationBo extends MybatisBaseEntity {

    /**
     * id
     */
    private String id;

    /**
     * 名称
     */
    @NotBlank(message = "名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 链接
     */
    @NotBlank(message = "链接不能为空", groups = { AddGroup.class, EditGroup.class })
    private String url;

    /**
     * 类型
     */
    @NotBlank(message = "类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String type;

    /**
     * 图标
     */
    @NotBlank(message = "图标不能为空", groups = { AddGroup.class, EditGroup.class })
    private String icon;

    /**
     * 顺序
     */
    @NotNull(message = "顺序不能为空", groups = { AddGroup.class, EditGroup.class })

     private Integer orderNum;

}
